<link href="__CDN__/assets/css/backendtable.css" rel="stylesheet">
<style>
    .input-goods_name{cursor: pointer; border:1px solid #ccc; height: 31px; padding: 6px 12px;}
    .pageMenu li::selection{background:transparent;}
    .clearfix{zoom:1;}


    .notContent{padding: 15px 0;text-align: center;}

    .page{text-align: center;width: 100%;margin: 0 auto; overflow: hidden;}
    .pageMenu{display: inline-block;position: relative;float:left;}

    .pageMenu li{border: solid thin #ddd;margin: 3px;float: left;padding: 2px 5px;cursor: pointer;background: #fff;}
    .pageMenu li.firstPage{}
    .pageMenu li.prevPage{}
    .pageMenu li.pageNum{}
    .pageMenu li.nextPage{}
    .pageMenu li.lastPage{}
    .pageMenu li.disabled{ background-color: #DDDDDD;   cursor: not-allowed;}
    .pageMenu li.active{ border: solid thin #0099FF;background-color: #0099FF;color: white;}
    .pageMenu li.last{background: transparent;border:0;position: relative;top: -4px;}
    .page .keuInput{padding: 0 5px;width: 30px;border: solid thin #ddd;height: 29px;outline: none;text-align: center;font-size: 16px;}
    .page .btnSure{padding: 4px 8px;border: solid thin #ddd;outline: none;text-align: center;font-size: 16px;background: #fff;position: relative;top: 2px;}
    .page .btnSure:hover{cursor: pointer;}
    .pageObj{float: left;}

    .table{
        border: 1px solid #e7e9f1;

    }
    .table th, .table td {
        display: table-cell;
        vertical-align: inherit;
        vertical-align: middle!important;
        border: 1px solid #e7e9f1;
    }
    .table .head tr td{
        background: rgb(232, 237, 240);
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-createtime" class="control-label col-xs-6 col-sm-3">*{:__('日期')}:</label>
                        <div class="col-xs-6 col-sm-5">
                            <input id="c-createtime" name="row[deliverydate]" class="form-control datetimepicker"  type="text" value="{:date('Y-m-d H:i:s', time())}" placeholder="请选择日期" data-rule="required">
                        </div>
                    </div>
                </div>

                   <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-dep_id" class="control-label col-xs-12 col-sm-3">*{:__('分公司名称')}:</label>
                        <div class="col-xs-12 col-sm-8">
                                 <select  name="row[dep_id]"  class="form-control" id="c-dep_id">
                                    <option value="">请选择</option>
                                    {foreach name="dep" item="vo"}
                                    <option value="{$vo.dep}">{$vo.gname}</option>
                                    {/foreach}
                                </select>
                                <input id="c-nameAgent" name="row[nameAgent]" class="form-control" type="hidden"  value="" >
                        </div>
                    </div>
                </div>
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-nameShipper" class="control-label col-xs-12 col-sm-3">*{:__('发货方名称')}:</label>
                        <div class="col-xs-6 col-sm-6">
                            <input id="c-nameShipper" name="row[nameShipper]" class="form-control" type="text"  value="北京宏达一甲教育科技有效公司" placeholder="请输入发货方名称" data-rule="required">
                        </div>
                    </div>
                </div>
                  <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-consignee" class="control-label col-xs-12 col-sm-3">*{:__('收货方联系人')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-consignee" name="row[consignee]" data-rule="required"  class="form-control "  placeholder="请输入分公司联系人" type="text" value="">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-shipperTelephone" class="control-label col-xs-12 col-sm-3">*{:__('发货方电话')}:</label>
                        <div class="col-xs-6 col-sm-6">
                            <input id="c-shipperTelephone"  name="row[shipperTelephone]" class="form-control" type="text"  value="010-88878286" placeholder="请输入发货方电话" data-rule="required">
                        </div>
                    </div>
                </div>
             <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-consigneeTelephone" class="control-label col-xs-12 col-sm-3">*{:__('收货方电话')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-consigneeTelephone" name="row[consigneeTelephone]" class="form-control" type="text" value="" placeholder="请输入收货方电话" data-rule="required">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-shipperAddress" class="control-label col-xs-12 col-sm-3">*{:__('发货方地址')}:</label>
                        <div class="col-xs-6 col-sm-6">
                            <input id="c-shipperAddress" name="row[shipperAddress]"  class="form-control" type="text"  value="北京市海淀区蓝靛厂东路2号金源商务中心B座3F" placeholder="请输入发货方电话" data-rule="required">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-consigneeAddress" class="control-label col-xs-12 col-sm-3">*{:__('收货方地址')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-consigneeAddress" name="row[consigneeAddress]" class="form-control" type="text" value="" placeholder="请输入收货方地址" data-rule="required">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-shipperAddress" class="control-label col-xs-12 col-sm-3">*是否已发货</label>
                        <div class="col-xs-6 col-sm-6">
                            <div class="radio">
                                <label for="row-gift-1"><input id="row-gift-1"  name="gift" type="radio" value="1"> 是</label>
                                <label for="row-gift-2"><input id="row-gift-2" checked="checked" name="gift" type="radio" value="2"> 否</label>
                            </div>
                        </div>
                    </div>
                </div>
              
            </div>

            <div class="row col-xs-12" style="padding-left:5%;">
                <table data-template="muban" data-index="1" data-name="muban"   class=" table table-bordered" >
                    <thead class="head">
                    <tr>
                        <td style="width:50px">序号</td>
                        <td style="width:260px">商品名称</td>
                        <td style="width:100px">单价</td>
                        <td style="width:100px">数量</td>
                        <td style="width:100px">折扣</td>
                        <td style="width:100px">备注</td>
                        <td style="width:20px">操作</td>
                    </tr>
                    </thead>
                    <tbody id="ultable" data-selects=""  data-listidx="1">
                    </tbody>
                    <thead>
                    <tr>
                        <td colspan="3">批量修改</td>
                        <td><input autocomplete="off" placeholder="数量" id="c-numArr" name="" class="form-control" type="number"></td>
                        <td><input autocomplete="off" placeholder="例如：0.5" id="c-discountArr" name="" class="form-control" type="text"></td>
                        <td colspan="2"></td>
                    </tr>
<!--                    <tr><td colspan="3">合计：</td><td colspan="2" id="tj1">0</td><td colspan="2" id="tj2">0</td></tr>-->
                    </thead>
                    <tfooter>
                        <tr>
                            <td colspan="3">
                                <a href="javascript:;" class="btn btn-sm btn-success btn-append dsiabled"><i class="fa fa-plus"></i>添加</a>
                            </td>
                            <td colspan="4">
                                <a href="javascript:;" class="btn btn-sm btn-success fagoods dsiabled"><i class="fa fa-plus"></i>更多</a>
                            </td>
                        </tr>
                    </tfooter>
                </table>
            </div>

            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-receivingWay" class="control-label col-xs-12 col-sm-3">*{:__('发货方式')}:</label>
                        <div class="col-xs-6 col-sm-6">
                            <input id="c-receivingWay" name="row[receivingWay]" class="form-control" type="text"  value="" placeholder="请输入发货方式" data-rule="required">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-freightFor" class="control-label col-xs-12 col-sm-3">*{:__('运费承担')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-freightFor" data-rule="required" class="form-control" name="row[freightFor]" type="text"  value="" placeholder="请输入发货方式" >
                        </div>
                    </div>
                </div>
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-forArrivalGoodsTime" class="control-label col-xs-12 col-sm-3">{:__('要求到货时间')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-forArrivalGoodsTime" class="form-control datetimepicker" name="row[forArrivalGoodsTime]" type="text" value="{:date('Y-m-d H:i:s', time())}" placeholder="请选择日期" data-rule="required">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-remark" class="control-label col-xs-12 col-sm-3">{:__('备注')}:</label>
                        <div class="col-xs-12 col-sm-9">
                            <textarea  class="form-control" name="row[remark]" placeholder="请输入备注信息，最多不超过200字" style="height:90px;"></textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </form>
    </div>
</div>